import NetWorkTool from "./netWorkTool.js"

/**
 * 组员查看会议任务列表
 * {
	"current": 1,
	"pageSize": 10,
	"param": {
		"meetingName": "",
		"status": ""
	}
}
 */
export function getMeetingByCrew(ars) {
	return NetWorkTool.POST('/api/party-meeting-task/getMeetingByCrew', ars,false);
}

/**
 * 监控人查看会议任务列表
 * {
	"current": 1,
	"pageSize": 10,
	"param": {
		"meetingName": "",
		"status": ""
	}
}
 */
export function getMeetingByMonitor(ars) {
	return NetWorkTool.POST('/api/party-meeting-task/getMeetingByMonitor', ars,false);
}

/**
 * 监控人处理监控任务
 * {
	"createUser": 0,
	"executorUser": 0,
	"files": [],
	"leadRejectReason": "",
	"meetingTaskId": 0,
	"monitorLead": 0,
	"monitorScore": 0,
	"monitorUser": 0,
	"monitorUserScore": 0,
	"taskScore": 0
}
 */
export function monitorMeetingTask(ars) {
	return NetWorkTool.POST('/api/party-meeting-task/monitorMeetingTask', ars,true);
}


export function executeTask(ars) {
	return NetWorkTool.POST('/api/party-meeting-task/executeTask', ars,true);
}

export function getTaskDetail(ars) {
	return NetWorkTool.POSTFORM('/api/party-meeting-task/getTaskDetail', ars,true);
}
export function monitorLeaderList(ars) {
	return NetWorkTool.POSTFORM('/api/party-meeting-task/monitorLeaderList', ars,true);
}

export function monitorLeaderMeetingTask(ars) {
	return NetWorkTool.POST('/api/party-meeting-task/monitorLeaderMeetingTask', ars,true);
}
